<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>湖南省自来水公司营销管理信息系统</title> 
	
	<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/grid.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/layout.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/custom.css" type="text/css" media="screen" title="no title">
</head> 
 
<body> 

<div id="wrapper">
	
	<#include "../common/header.ftl"/>
	

	
	<div id="content" class="xgrid" >

		<div class="x12">
			
			<h2>水表周检报表</h2>
			
			<div>
				表龄大于 <input style="width:30px;text-align:right;" value="24" /> 个月
				<button class="btn btn-small btn-icon btn-find"><span></span>查询</button>
			</div>
			
			
			<div class="reportTitle">
				表龄大于 24 个月的水表
			</div>	
			<div class="height24">
				<div style="float:left;width:200px;">共计 26 块水表</div>
			</div>
			<table class="report">
				<thead>
					<tr>
						<th width="100">用户编码</th>
						<th width="100">用户姓名</th>
						<th width="100">表身码</th>
						<th width="100">水表类型</th>
						<th width="80">水表口径</th>
						<th width="100">装表日期</th>
						<th width="80">表龄（月）</th>
						<th>水表厂家</th>
					</tr>
				</thead>

				<tbody>
                 <#list lists as itms>
					<tr>
						<td class="center">${itms.UserNo}</td>
						<td class="center">${itms.UserName}</td>
						<td class="center">${itms.MeterName}</td>
						<td class="center">${itms.MeterTypeName}</td>
                        <td class="center">${itms.Aperture}</td>
                        <td class="center">${itms.CreateDate?string("yyyy年MM月dd日")}</td>
                        <td class="center">${itms.tableAge}</td>
                        <td class="center">${itms.Factory}</td>
					</tr>
                 </#list>
					</tbody>
				</table>
				<div class="page">
                    <a href="/start?stat=1&type=meter">第一页</a>
                    <a href="/start?stat=${page.pagenum-1}&type=meter" id="oo"><input type="hidden" id="syy" value="${page.pagenum-1}">上一页</a>
                    <input class="pageIndex" value="${page.pagenum}" id="pn"/> / <input class="pageCount" readonly="readonly" value="${page.pages}" id="zongpage"/>
                    <a href="/start?stat=${page.pagenum+1}&type=meter" id="dd">下一页</a>
                    <a href="/start?stat=${page.pages}&type=meter">第未页</a>
				</div>

		</div> <!-- .x12 -->
		
	</div> <!-- #content -->
	
	<div id="footer">		
		<div class="content_pad">			
			<p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>.   技术支持 <a href="#">华瑞教育</a>.</p>
		</div> <!-- .content_pad -->
	</div> <!-- #footer -->
	
</div> <!-- #wrapper -->

<script src="../../../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../../../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../../../js/misc/excanvas.min.js"></script>
<script src="../../../js/jquery/facebox.js"></script>
<script src="../../../js/jquery/jquery.visualize.js"></script>
<script src="../../../js/jquery/jquery.dataTables.min.js"></script>
<script src="../../../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../../../js/jquery/jquery.uniform.min.js"></script>
<script src="../../../js/jquery/jquery.placeholder.min.js"></script>

<script src="../../../js/widgets.js"></script>
<script src="../../../js/dashboard.js"></script>
<script src="../../../My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript">

    $(function () {
        //上一页
        $("#oo").click(function () {
            var opage=$("#syy").val();
            if (opage<=0) {
                return false;
            }
        })
        //下一页
        $("#dd").click(function () {
            var nextpage=$("#pn").val();
            var sizepage=$("#zongpage").val();
            if (nextpage==sizepage) {
                return false;
            }
        })
        //失去焦点查询指定页
        $("#pn").blur(function(){
            var nextpage=$("#pn").val();
            var sizepage=$("#zongpage").val();
            if (nextpage>sizepage) {
                alert("大于最大页")
                $("#pn").html("")
                return false;
            }
            if (nextpage<=0) {
                alert("输入有误")
                $("#pn").html("")
                return false;
            }
            window.location.href="http://localhost:8090//rd_reportMeterCheck/start?stat="+nextpage+"&type=meter";
        })
        //保存输入数据
    <#--$("#cxgd").click(function () {-->
    <#--var ordertype=${"#ordertype"}.val()-->
    <#--var stepid=$("#stepid").val()-->
    <#--var orderno=$("orderno").val()-->
    <#--var username=$("username").val()-->
    <#--${"#ordertype"}.val(ordertype)-->
    <#--$("#orderno").val(orderno)-->
    <#--$("#stepid").val(stepid)-->
    <#--$("#username").val(username-->
    <#--})-->


    })


</script>

</body> 
 
</html>